@import "../css/common.less";

.wpt-confirm {
  .dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 2000;
    color: #424242;
    width: 6.375rem;
    font-size: 16px;
    max-width: 500px;
    border-radius: 4px;
    background-color: #FFF;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);

    .icon {
      display: none;
    }

    .tip {
      .msg {
        position: relative;
        text-align: center;
        padding: 40px 25px;
      }

      .msg:after {
        position: absolute;
        content: '';
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
        transform: scaleY(0.5);
        background-color: #D9D9D9;
        -webkit-transform: scaleY(0.5);
      }
    }

    .btns {
      font-size: 17px;
      cursor: pointer;
      div {
        position: relative;
        width: 50%;
        float: left;
        text-align: center;
        line-height: 42px;
      }

      div:first-child:after {
        position: absolute;
        content: '';
        right: 0;
        top: 0;
        height: 100%;
        width: 1px;
        transform: scaleX(0.5);
        background-color: #D9D9D9;
        -webkit-transform: scaleX(0.5);
      }

      .btn-confirm {
        color: #06BC07;
      }
    }
  }

  .dialog.hasIcon {
    .icon {
      width: 100%;
      height: 77px;
      display: block;
      margin-bottom: -35px;
      background-size: 50px;
      background-repeat: no-repeat;
      background-position: bottom center;
      background-image: url(//cdn.weipaitang.com/res/img/faq.png);
    }
  }
}

/*--------------------分割线--------------------*/
.wpt-multiConfirm {
  .dialog {
    position: fixed;
    left: 50%;
    top: 100%;
    z-index: 1999;
    width: 7.5rem;
    color: #424242;
    margin-left: -3.75rem;
    background-color: #EFEFF4;

    .tip {
      font-size: 14px;
      line-height: 40px;
      border-radius: 8px;
      text-align: center;
    }

    .btns {
      width: 100%;
      a {
        color: inherit;
        display: block;
        text-decoration: none;

        .btn-confirm {
          position: relative;
          height: 48px;
          font-size: 16px;
          line-height: 48px;
          text-align: center;
          background-color: #FFF;
        }

        .btn-confirm:before {
          position: absolute;
          content: " ";
          top: 0;
          left: 0;
          width: 100%;
          height: 1px;
          transform: scaleY(.5);
          background-color: #D9D9D9;
          -webkit-transform: scaleY(.5);
        }
      }

      a:first-child .btn-confirm:before {
        height: 0;
      }
    }

    .btn-cancel{
      height: 48px;
      font-size: 16px;
      margin-top: 6px;
      line-height: 48px;
      text-align: center;
      background-color: #FFF;
      cursor: pointer;
    }
  }
}

/*--------------------分割线--------------------*/
.wpt-share {
  .dialog {
    position: fixed;
    top: 100%;
    z-index: 1999;
    width: 7.5rem;
    color: #424242;
    background-color: #EFEFF4;

    .tip {
      line-height: 50px;
      border-radius: 8px;
      text-align: center;

      .msg {
        font-size: 14px;
      }
    }

    .btns {
      width: 90%;
      overflow: hidden;
      margin: 0 5% 20px;

      .btn-share {
        position: relative;
        width: 25%;
        float: left;
        font-size: 12px;
        text-align: center;
        padding: 60px 0 20px;
        text-decoration: none;

        .icon {
          position: absolute;
          top: 0;
          left: 50%;
          width: 51px;
          height: 51px;
          margin-left: -25.5px;
          background-size: 51px;
          background-repeat: no-repeat;
          background-image: url("@{CDNURL}static/20170804337d54eb-7bd4-45af-9001-10a8e90d7370-W102H408/w/320?v=@{version}");
        }
      }
    }

    .btns.isPc .btn-share .icon {
      background-image: url("@{CDNURL}static/20170804d95a148e-666a-432b-98df-e3470967d11d-W102H816/w/320?v=@{version}");
    }

    .btn-cancel{
      width: 93%;
      color: #FFF;
      height: 48px;
      font-size: 16px;
      margin: 16px auto;
      line-height: 48px;
      border-radius: 4px;
      text-align: center;
      background-color: #858C96;
      cursor: pointer;
    }
  }
}

/*--------------------分割线--------------------*/
.selectList {
  margin: 10px 0;
  overflow: hidden;
  line-height: 24px;
  background-color: #FFF;

  .item {
    position: relative;
    padding: 10px 15px;
    display: flex;
    display: -webkit-box;
    display: -webkit-flex;
    align-content: center;
    -webkit-align-items: center;

    .liHead {
      flex: 1;
      -webkit-flex: 1;
      -webkit-box-flex: 1;

      .text:nth-child(1) {
        float: left;
        min-width: 50%;
        text-align: left;
      }

      .text:nth-child(2) {
        float: left;
        max-width: 50%;
        overflow: hidden;
      }

      .text:nth-child(3) {
        clear: both;
        color: #888;
        font-size: 14px;
        text-align: left;
      }
    }

    .liContent {
      width: 52px;
    }
  }

  .item.checkbox {
    .liHead {
      flex: inherit;
      -webkit-flex: inherit;
      -webkit-box-flex: 0;
      padding-right: 10px;
    }

    .liContent {
      width: auto;
      flex: 1;

      .option {
        float: left;
        height: 24px;
        font-size: 14px;
        margin-left: 15px;

        i.fa-check-circle {
          width: 0;
          float: left;
          font-size: 0;
          margin: 2px 0;
          color: #28DA46;
        }

        i.fa-circle {
          width: 22px;
          float: left;
          margin: 2px 0;
          color: #ADADAD;
          font-size: 20px;
        }
      }

      .option.selected {
        i.fa-check-circle {
          width: 22px;
          font-size: 20px;
        }

        i.fa-circle {
          width: 0;
          font-size: 0;
        }
      }
    }
  }

  .item.switch {
    .liContent {
      height: 24px;

      input.switch {
        position: relative;
        width: 52px;
        height: 32px;
        outline: none;
        display: block;
        margin: -4px 0;
        border-radius: 16px;
        box-sizing: border-box;
        -webkit-appearance: none;
        border: solid 1px #DFDFDF;
        background-color: #DFDFDF;
      }

      input.switch:checked {
        background-color: #53D769;
        border: solid 1px #53D769;
      }

      input.switch:before {
        position: absolute;
        content: '';
        top: 0;
        left: 0;
        width: 50px;
        height: 30px;
        border-radius: 15px;
        background-color: #FFF;
        transition: transform 0.3s;
      }

      input.switch:checked:before {
        transform: scale(0);
      }

      input.switch:after {
        position: absolute;
        content: '';
        top: 0;
        left: 0;
        width: 30px;
        height: 30px;
        border-radius: 15px;
        background-color: #FFF;
        transition: transform 0.3s;
        box-shadow: 0 1px 3px rgba(0,0,0,0.4);
      }

      input.switch:checked:after {
        transform: translateX(20px);
      }
    }
  }

  .item.radio {
    .liContent i {
      margin: 0 18px;
      color: #53D769;
      font-size: 0;
    }
  }

  .item.radio.selected {
    .liContent {
      i {
        font-size: 16px;
      }
    }
  }

  .item:before {
    position: absolute;
    content: "";
    top: 0;
    left: 15px;
    width: 100%;
    height: 1px;
    transform: scaleY(0.5);
    background-color: #D9D9D9;
    -webkit-transform: scaleY(0.5);
  }

  .sel-list {
    overflow: hidden;
  }

  .item.switch + .sel-list {
    height: 0;
  }
  .item.switch.on + .sel-list {
    height: auto;
  }

  .sel-list:first-child {
    .item:first-child:before {
      height: 0;
    }
  }
}

.selectList>.item:first-child:before {
  height: 0;
}

/*--------------------分割线--------------------*/
.wpt-alert {
  .dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 2000;
    color: #424242;
    width: 6.375rem;
    font-size: 16px;
    max-width: 500px;
    border-radius: .2rem;
    background-color: #FFF;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);

    .tip {
      .title {
        font-size: 16px;
        text-align: center;
        padding: 20px 25px 8px;
      }

      .msg {
        position: relative;
        font-size: 16px;
        text-align: center;
        line-height: 24px;
        padding: 0 .4rem .4rem;
      }

      .msg.hasTitle {
        color: #888;
        font-size: 15px;
      }

      .msg:after {
        position: absolute;
        content: '';
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
        transform: scaleY(0.5);
        background-color: #eee;
        -webkit-transform: scaleY(0.5);
      }
    }

    .btn {
      height: 1rem;
      font-size: 17px;
      color: #AB3B3A;
      line-height: 1rem;
      text-align: center;
      cursor: pointer;
    }
  }
}

.wpt-qrCode .dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2000;
  color: #424242;
  font-size: 16px;
  border-radius: 4px;
  background-color: #FFF;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  .tip {
    position: relative;
    width: 376px;
    height: 376px;
    margin: auto;
    line-height: 40px;
    border-radius: 6px;
    background: #FFF url("@{WEI_HOST}/res/img/goQrcode.png") no-repeat;
  }
  .msg {
    position: absolute;
    right: 24px;
    top: 96px;
    width: 177px;
    height: 177px;
  }
}

.wpt-qrCode2 .dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2000;
  color: #424242;
  font-size: 0.32rem;
  border-radius: 4px;
  background-color: #FFF;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);

  .tip {
    position: relative;
    width: 6.1rem;
    height: 5.4rem;
    margin: auto;
    //line-height: 40px;
    border-radius: 6px;
    .logo{
      position: absolute;
      width: 6.5rem;
      top: -3.4rem;
    }
  }
  .msg {
    position: absolute;
    top: 1.15rem;
    left: 1.85rem;
    width: 2.4rem;
    height: 2.4rem;
    img{
      width: 100%;
    }
  }
  .desc{
    position: absolute;
    top: 4rem;
    padding: 0 1rem;
    //left: 1.05rem;
    //width: 4rem;
    text-align: center;

  }
}


.wpt-customCode .dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2000;
  color: #424242;
  font-size: 0.32rem;
  border-radius: 4px;
  background-color: #FFF;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);

  .tip {
    position: relative;
    width: 4.4rem;
    height: 5.8rem;
    margin: auto;
    //line-height: 40px;
    border-radius: 6px;
    //background: #FFF url("@{WEI_HOST}/res/img/goQrcode2.png") no-repeat;
    .logo{
      //position: absolute;
      //width: 6.5rem;
      //top: -3.4rem;
    }
  }
  .msg {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 2.4rem;
    height: 2.4rem;
    img{
      width: 100%;
    }
  }
  .desc{
    position: absolute;
    top: 3.7rem;
    //padding: 0 1rem;
    //left: 1.05rem;
    width: 4.4rem;
    line-height: 0.5rem;
    //width: 4rem;
    text-align: center;

  }
  .logo{
    position: absolute;
    bottom: 0.4rem;
    right: 0.8rem;
    //height: 35px;
    //line-height: 35px;
    font-size: 0.5rem;
    text-align: right;
    color: #C90C00;
  }
}

.wptMultiConfirm{
  .dialog{
    position: fixed;
    top: 100%;
    width: 100%;
    z-index: 1999;
    color: #424242;
    background-color: #EFEFF4;

    .tip {
      font-size: 14px;
      line-height: 30px;
      border-radius: 8px;
      text-align: center;
    }
  }
  .btns {
    width: 100%;

    a {
      color: inherit;

      .btn-confirm {
        position: relative;
        height: 48px;
        font-size: 16px;
        line-height: 48px;
        text-align: center;
        background-color: #FFF;
      }

      .btn-confirm:before {
        position: absolute;
        content: " ";
        top: 0;
        left: 0;
        width: 100%;
        height: 1px;
        transform: scaleY(.5);
        background-color: #D9D9D9;
        -webkit-transform: scaleY(.5);
      }
    }

    a:first-child {
      .btn-confirm:before {
        height: 0;
      }
    }
  }
  .btn-cancel{
    height: 48px;
    font-size: 16px;
    margin-top: 6px;
    line-height: 48px;
    text-align: center;
    background-color: #FFF;
    cursor: pointer;
  }
}

/*--------------------内容提示--------------------*/
.wpt-notice {
  z-index: 99;
  position: fixed;
  width: 7rem;
  color: #FFF;
  height: 30px;
  // display: none;
  opacity: 1;
  padding: 8px 0.25rem;
  font-size: 14px;
  background-color: rgba(0, 0, 0, 0.7);
  .msg {
    float: left;
    width: 74%;
    height: 30px;
    line-height: 30px;
    overflow: hidden;
    margin-left: 3%;

    img {
      width: 45px;
      height: 45px;
      border-radius: 6px;
      position: absolute;
      bottom: 10px;
    }

    span {
      margin-left: 55px;
    }
  }

  .btn {
    float: right;
    width: 20%;
    height: 28px;
    line-height: 28px;
    margin: 1px 0;
    background-color: #C7160A;
    border-radius: 2px;
    text-align: center;
    font-size: 12px;
    margin-right: 3%;
  }
}

/*--------------------警告提示--------------------*/
.wpt-warning {
    width: 100%;
    max-width: 640px;
    background-color: #333;
    height: 34px;
    padding: 7px 0;
    color: #FFF;
    font-size: 14px;
  .msg {
    float: left;
    width: 74%;
    height: 34px;
    line-height: 34px;
    overflow: hidden;
    margin-left: 3%;
    .close {
        float: left;
        width: 24px;
        height: 30px;
        margin: 2px 0;
        background-size: 58%;
        background-position: center;
        background-repeat: no-repeat;
        background-image: url(//cdn.weipaitang.com/res/img/close.png);
    }
    img {
        width: 34px;
        height: 34px;
        border-radius: 6px;
        margin-left: 30px;
        position: absolute;
    }
    .text {
        height: 34px;
        margin-left: 75px;
        span.first {
            display: block;
            height: 20px;
            line-height: 20px;
            font-size: 13px;
        }
        span.second {
            display: block;
            height: 14px;
            line-height: 14px;
            font-size: 11px;
            color: #999;
        }
    }
  }

  .btn {
    float: right;
    width: 20%;
    height: 30px;
    line-height: 30px;
    margin: 2px 0;
    background-color: #AB2212;
    border-radius: 2px;
    text-align: center;
    font-size: 12px;
    margin-right: 3%;
  }
}

/*--------------------关注--------------------*/
.wpt-imgCode.small img{
  width: 100%;
  //transform: translate(33.5%, 33.8%);
  //-webkit-transform: translate(33.5%, 33.8%);
}
.wpt-imgCode.small .msg{
  top: 40px;
}
.wpt-imgCode {
  position: fixed;
  top:0;
  bottom: 0;
  text-align: center;
  width: 7.5rem;
  background-color: rgba(0,0,0,0.6);
  z-index: 1999;
  display: none;
  .content{
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    max-width: 340px;
    border-radius: 5px;
    //transform: translate(0, 16.8%);
    //-webkit-transform: translate(0, 16.8%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
  }
  .msg{
    top: 40px;
    position: absolute;
    width: 80%;
    left: 10%;
    text-align: center;
    color: #888;
    font-size: 13px;
  }
  img {
    width: 100%;
    //display: inline-block;
    //position: absolute;
    //top: 50%;
    //left: 50%;
    //width: 80%;
    //max-width: 340px;
    //border-radius: 5px;
    ////transform: translate(0, 16.8%);
    ////-webkit-transform: translate(0, 16.8%);
    //-webkit-transform: translate(-50%, -50%);
    //-ms-transform: translate(-50%, -50%);
    //transform: translate(-50%, -50%);
  }
}




.wptConfirmBottom{
  .wptMask {
    position: fixed;
    height: 100%;
    opacity: 0;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    z-index: 1999;
  }
  .dialog {
    position: fixed;
    background: #ededed;
    width: 100%;
    max-width: 640px;
    bottom: -180px;
    z-index: 1999;
    .tip {
      line-height: 30px;
      padding: 10px 0px;
      font-size: 14px;
      border-radius: 8px;
      .msg {
        text-align: center;
        line-height: 30px;
      }
    }
    .btns {
      width: 87%;
      margin: 0 auto;
      padding: 15px 0px;
      .btn-confirm,
      .btn-cancel{
        border: 1px solid #ceced1;
        background: #f7f7f7;
        padding: 10px 14px;
        color: #454545;
        border-radius: 4px;
        width: 92%;
        text-align: center;
        font-size: 18px;
      }
      .btn-cancel{
        background-color: #858c96;
        margin: 22px 0 7px 0;
        color: #fff;
        border: none;
      }
    }
  }
}



/*---------------------规则介绍-------------------*/

.wpt-ReadMe {
  display: none;
  .dialog {
    position: fixed;
    height: 75%;
    width: 6.45rem;
    top: 50%;
    left: 50%;
    z-index: 2000;
    font-size: 16px;
    border-radius: 5px 5px 0 0;
    background-color: #FFF;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    .close {
      position: absolute;
      right: 0;
      top: 0;
      width: 40px;
      height: 40px;
      border-radius: 20px;
      background-color: rgba(255,255,255,0.9);
    }
    .close:before,
    .close:after {
      content: '';
      position: absolute;
      top: 50%;
      left: 25%;
      width: 20px;
      height: 1px;
      background-color: #BBB;
      transform:rotate(45deg);
      -webkit-transform: rotate(45deg);
    }
    .close:after {
      transform:rotate(-45deg);
      -webkit-transform: rotate(-45deg);
    }
    .tip {
      line-height: 20px;
      font-size: 13px;
      height: 88%;
      padding: 0 20px;
      margin: 8% auto 3%;
      overflow-y: scroll;
      color: #424242;
      .msg{
        h2 {
          font-size: 15px;
          text-align: center;
        }
        h3 {
          margin: 0;
          padding: 0;
          text-indent: -0.5em;
          height: 40px;
          line-height: 40px;
          font-size: 16px;
        }
        h4 {
          margin: 0;
          line-height: 23px;
        }
        .protocolFoot {
          float: right;
          text-align: center;
          text-indent: 0;
        }
      }
    }
    .btns {
      width: 100%;
      height: 44px;
      line-height: 44px;
      text-align: center;
      background-color: #9E0000;
      font-size: 18px;
      color: #FFF;
      border-radius: 0 0 5px 5px;
    }
  }
  //.windows {
  //  max-width: 550px;
  //  left: 50%;
  //  margin-left: -275px;
  //}
}
//
//.wptReadmeContent{
//  display: none;
//}
//

// wpt-model open
.wpt-model {
      display: none;
      .dialog {
        position: fixed;
        top: 50%;
        left: 50%;
        z-index: 2000;
        font-size: 16px;
        border-radius: .06rem;
        transform: translate(-50%, -50%);
        &.transition {
            transition: transform .3s;
        }

        &.init {
            transform: translate3d(-50%, -50%, 0) scale3d(.3, .3, 1);
        }
    }
}

.wpt-openImg{
  .content{
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 2000;
    color: #424242;
    font-size: 0.32rem;
    border-radius: 4px;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    .open-img{
      width: 5.4rem;
      height: 5rem;
    }
    .msg{
      text-align: center;
      font-size: 16px;
      line-height: 50px;
      color: #06BC07;
      border:1px solid #e8e8e8;
      border-radius: 0px 0px 0.14rem 0.14rem;
      background-color: #FFF;
      //border-radius: ;
      //margin-top: -14px;
    }
  }

}
